package com.qf.commerce.resp;

import lombok.Getter;

/**
 * @author zhangwei
 */

@Getter
public enum ResponseStatus {
    /**
     * 成功
     */
    SUCCESS(200, "success"),
    /**
     * 表示系统异常
     */
    SYS_ERROR(404, "sys error"),

    PAGE_ERROR(50010,"分页查询失败"),
    DATA_ERROR(50020,"数据异常"),
    GET_DATA_ERROR(500,"获取数据异常"),
    STATE_NOT_PRESENT(405,"该状态不存在"),
    QUERY_FAILURE(406,"查询失败"),
    UPDATE_FAILURE(407,"更新失败"),
    ADD_FAILURE(408,"新增失败");

    private final String message;
    private final int code;

    ResponseStatus(int code, String message) {
        this.message = message;
        this.code = code;
    }
}
